<?php
/**
 * @Author:      zk
 * @DateTime:    18-4-17 下午3:01
 * @Description: 市信息   [anhui_data 库]
 */
class DataResourceCity extends Eloquent
{
    protected $connection = 'mysql_data';
    protected $table = 'resource_city';

    /**
     * 根据id获取具体市的详细信息
     * @param int $id   id
     * @return array
     */
    public static function getInfoById($id){
        $result = self::find($id);
        if($result){
            $res = $result->toArray();
        } else {
            $res = [];
        }
        
        return $res;
    }
    
    
}


